package com.epidemic.project.system.wuzi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.epidemic.project.system.wuzi.mapper.SysWuZiMapper;
import com.epidemic.project.system.wuzi.domain.SysWuZi;
import com.epidemic.project.system.wuzi.service.ISysWuZiService;
import com.epidemic.common.utils.text.Convert;

/**
 * 物资申请Service业务层处理
 * 
 * @author sys
 * @date 2023-02-01
 */
@Service
public class SysWuZiServiceImpl implements ISysWuZiService 
{
    @Autowired
    private SysWuZiMapper sysWuZiMapper;

    /**
     * 查询物资申请
     * 
     * @param id 物资申请ID
     * @return 物资申请
     */
    @Override
    public SysWuZi selectSysWuZiById(Long id)
    {
        return sysWuZiMapper.selectSysWuZiById(id);
    }

    /**
     * 查询物资申请列表
     * 
     * @param sysWuZi 物资申请
     * @return 物资申请
     */
    @Override
    public List<SysWuZi> selectSysWuZiList(SysWuZi sysWuZi)
    {
        return sysWuZiMapper.selectSysWuZiList(sysWuZi);
    }

    /**
     * 新增物资申请
     * 
     * @param sysWuZi 物资申请
     * @return 结果
     */
    @Override
    public int insertSysWuZi(SysWuZi sysWuZi)
    {
        return sysWuZiMapper.insertSysWuZi(sysWuZi);
    }

    /**
     * 修改物资申请
     * 
     * @param sysWuZi 物资申请
     * @return 结果
     */
    @Override
    public int updateSysWuZi(SysWuZi sysWuZi)
    {
        return sysWuZiMapper.updateSysWuZi(sysWuZi);
    }

    /**
     * 删除物资申请对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSysWuZiByIds(String ids)
    {
        return sysWuZiMapper.deleteSysWuZiByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除物资申请信息
     * 
     * @param id 物资申请ID
     * @return 结果
     */
    @Override
    public int deleteSysWuZiById(Long id)
    {
        return sysWuZiMapper.deleteSysWuZiById(id);
    }
}
